<%@page contentType="text/html;charset=UTF-8"%>
<% request.setCharacterEncoding("UTF-8"); %>
<HTML>
<HEAD>
<TITLE>Result</TITLE>
</HEAD>
<BODY>
<H1>Result</H1>

<jsp:useBean id="sampleCartBeanProxyid" scope="session" class="archsw0904.controller.shopping.cart.CartBeanProxy" />
<%
if (request.getParameter("endpoint") != null && request.getParameter("endpoint").length() > 0)
sampleCartBeanProxyid.setEndpoint(request.getParameter("endpoint"));
%>

<%
String method = request.getParameter("method");
int methodID = 0;
if (method == null) methodID = -1;

if(methodID != -1) methodID = Integer.parseInt(method);
boolean gotMethod = false;

try {
switch (methodID){ 
case 2:
        gotMethod = true;
        java.lang.String getEndpoint2mtemp = sampleCartBeanProxyid.getEndpoint();
if(getEndpoint2mtemp == null){
%>
<%=getEndpoint2mtemp %>
<%
}else{
        String tempResultreturnp3 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(getEndpoint2mtemp));
        %>
        <%= tempResultreturnp3 %>
        <%
}
break;
case 5:
        gotMethod = true;
        String endpoint_0id=  request.getParameter("endpoint8");
            java.lang.String endpoint_0idTemp = null;
        if(!endpoint_0id.equals("")){
         endpoint_0idTemp  = endpoint_0id;
        }
        sampleCartBeanProxyid.setEndpoint(endpoint_0idTemp);
break;
case 10:
        gotMethod = true;
        archsw0904.controller.shopping.cart.CartBean getCartBean10mtemp = sampleCartBeanProxyid.getCartBean();
if(getCartBean10mtemp == null){
%>
<%=getCartBean10mtemp %>
<%
}else{
        if(getCartBean10mtemp!= null){
        String tempreturnp11 = getCartBean10mtemp.toString();
        %>
        <%=tempreturnp11%>
        <%
        }}
break;
case 13:
        gotMethod = true;
        String arg0_1id=  request.getParameter("arg016");
            java.lang.Integer arg0_1idTemp = null;
        if(!arg0_1id.equals("")){
         arg0_1idTemp  = java.lang.Integer.valueOf(arg0_1id);
        }
        String arg1_2id=  request.getParameter("arg118");
            java.lang.Integer arg1_2idTemp = null;
        if(!arg1_2id.equals("")){
         arg1_2idTemp  = java.lang.Integer.valueOf(arg1_2id);
        }
        java.lang.Boolean addBook13mtemp = sampleCartBeanProxyid.addBook(arg0_1idTemp,arg1_2idTemp);
if(addBook13mtemp == null){
%>
<%=addBook13mtemp %>
<%
}else{
        String tempResultreturnp14 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(addBook13mtemp));
        %>
        <%= tempResultreturnp14 %>
        <%
}
break;
case 20:
        gotMethod = true;
        String arg0_3id=  request.getParameter("arg023");
            java.lang.Integer arg0_3idTemp = null;
        if(!arg0_3id.equals("")){
         arg0_3idTemp  = java.lang.Integer.valueOf(arg0_3id);
        }
        String arg1_4id=  request.getParameter("arg125");
            java.lang.Integer arg1_4idTemp = null;
        if(!arg1_4id.equals("")){
         arg1_4idTemp  = java.lang.Integer.valueOf(arg1_4id);
        }
        String arg2_5id=  request.getParameter("arg227");
            java.lang.Integer arg2_5idTemp = null;
        if(!arg2_5id.equals("")){
         arg2_5idTemp  = java.lang.Integer.valueOf(arg2_5id);
        }
        java.lang.Integer addCopies20mtemp = sampleCartBeanProxyid.addCopies(arg0_3idTemp,arg1_4idTemp,arg2_5idTemp);
if(addCopies20mtemp == null){
%>
<%=addCopies20mtemp %>
<%
}else{
        String tempResultreturnp21 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(addCopies20mtemp));
        %>
        <%= tempResultreturnp21 %>
        <%
}
break;
case 29:
        gotMethod = true;
        String arg0_6id=  request.getParameter("arg032");
            java.lang.Integer arg0_6idTemp = null;
        if(!arg0_6id.equals("")){
         arg0_6idTemp  = java.lang.Integer.valueOf(arg0_6id);
        }
        java.lang.Integer createCart29mtemp = sampleCartBeanProxyid.createCart(arg0_6idTemp);
if(createCart29mtemp == null){
%>
<%=createCart29mtemp %>
<%
}else{
        String tempResultreturnp30 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(createCart29mtemp));
        %>
        <%= tempResultreturnp30 %>
        <%
}
break;
case 34:
        gotMethod = true;
        String arg0_7id=  request.getParameter("arg039");
            java.lang.Integer arg0_7idTemp = null;
        if(!arg0_7id.equals("")){
         arg0_7idTemp  = java.lang.Integer.valueOf(arg0_7id);
        }
        archsw0904.controller.shopping.cart.BookListVisualizationInfo getBookList34mtemp = sampleCartBeanProxyid.getBookList(arg0_7idTemp);
if(getBookList34mtemp == null){
%>
<%=getBookList34mtemp %>
<%
}else{
%>
<TABLE>
<TR>
<TD COLSPAN="3" ALIGN="LEFT">returnp:</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">totalPrice:</TD>
<TD>
<%
if(getBookList34mtemp != null){
java.math.BigDecimal typetotalPrice37 = getBookList34mtemp.getTotalPrice();
        String tempResulttotalPrice37 = org.eclipse.jst.ws.util.JspUtils.markup(typetotalPrice37.toString());
        %>
        <%= tempResulttotalPrice37 %>
        <%
}%>
</TD>
</TABLE>
<%
}
break;
case 41:
        gotMethod = true;
        String arg0_8id=  request.getParameter("arg044");
            java.lang.Integer arg0_8idTemp = null;
        if(!arg0_8id.equals("")){
         arg0_8idTemp  = java.lang.Integer.valueOf(arg0_8id);
        }
        String arg1_9id=  request.getParameter("arg146");
            java.lang.Integer arg1_9idTemp = null;
        if(!arg1_9id.equals("")){
         arg1_9idTemp  = java.lang.Integer.valueOf(arg1_9id);
        }
        java.lang.Boolean removeBook41mtemp = sampleCartBeanProxyid.removeBook(arg0_8idTemp,arg1_9idTemp);
if(removeBook41mtemp == null){
%>
<%=removeBook41mtemp %>
<%
}else{
        String tempResultreturnp42 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(removeBook41mtemp));
        %>
        <%= tempResultreturnp42 %>
        <%
}
break;
case 48:
        gotMethod = true;
        String arg0_10id=  request.getParameter("arg051");
            java.lang.Integer arg0_10idTemp = null;
        if(!arg0_10id.equals("")){
         arg0_10idTemp  = java.lang.Integer.valueOf(arg0_10id);
        }
        String arg1_11id=  request.getParameter("arg153");
            java.lang.Integer arg1_11idTemp = null;
        if(!arg1_11id.equals("")){
         arg1_11idTemp  = java.lang.Integer.valueOf(arg1_11id);
        }
        String arg2_12id=  request.getParameter("arg255");
            java.lang.Integer arg2_12idTemp = null;
        if(!arg2_12id.equals("")){
         arg2_12idTemp  = java.lang.Integer.valueOf(arg2_12id);
        }
        java.lang.Boolean removeCopies48mtemp = sampleCartBeanProxyid.removeCopies(arg0_10idTemp,arg1_11idTemp,arg2_12idTemp);
if(removeCopies48mtemp == null){
%>
<%=removeCopies48mtemp %>
<%
}else{
        String tempResultreturnp49 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(removeCopies48mtemp));
        %>
        <%= tempResultreturnp49 %>
        <%
}
break;
}
} catch (Exception e) { 
%>
exception: <%= e %>
<%
return;
}
if(!gotMethod){
%>
result: N/A
<%
}
%>
</BODY>
</HTML>